package net.ys.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nmy
 */
@RestController
public class TestController {

    @Value("${system.name}")
    private String name;

    @Value("${system.age}")
    private String age;

    @GetMapping("/show")
    public String show() {
        return "Hello World" + " :" + name + " " + age;
    }

}